package com.tpu.osu.rating.dao;

import java.util.HashMap;
import java.util.Map;

import com.tpu.osu.rating.Lector;

public class LectorDAORAM implements LectorDAO {

	private Map<String,Lector> lectors;
	
	public LectorDAORAM() {
		lectors = new HashMap<String,Lector>();
	}
	
	
	public void insert(Lector aLector) throws Exception {
		lectors.put(aLector.getName(), aLector);
	}
 
	public Lector selectByName(String aName) throws Exception {
		return lectors.get(aName);
	}
 
}
